Skip to content

id-worlds: signed program bundle format with export, verify and fork - #11498

Merged
dezren39 merged 1 commit into
mainfrom
claude/id-program-bundle-8280
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/id-program-bundle-8280

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: there was no way to carry a program as a file. A world module could be uploaded with an F12.17 signature, but nothing stated who wrote it, its name and version, which ABI it targets, or what it was forked from.

After: id_worlds::program_bundle defines the single-file bundle from design D1-D3 and can export, verify and fork one, fully offline. A tampered payload, manifest, lineage, author or signature is refused with the failing check named (framing, manifest, abi, lineage, payload, content_hash, bundle_signature, module_signature).

How: the file is a magic line, a length-prefixed manifest JSON, a length-prefixed seal JSON, then the payload. The manifest holds author key, name, version, content hash (the same BLAKE3 hex a world install uses), the plaza v1 ABI descriptor, ordered lineage and an optional licence. The seal holds two author signatures: one over a domain prefix plus the BLAKE3 of the exact manifest bytes and of the payload, and the existing world-module signature over the payload, so ProgramBundle::module_signature() installs into a trust-listed world unchanged. fork() appends the parent's identity to the parent's lineage. Both JSON segments refuse repeated keys (#8794) and unknown fields. world_session::module_signing_message is factored out so both paths sign the same bytes.

Not in this PR: sideload import into a world (verification at import, ABI fit against the host, install record), which is #8280's second slice, and #8540's import round-trip, which needs that slice.

Testing: cargo test -p id-worlds --lib -- program_bundle trust signature (17 pass, 14 new): round-trip, byte-identical re-encode, trust-list install check, tampered payload, tampered and re-serialised manifest, swapped author, foreign module signature, framing faults, repeated and unknown keys, unhosted ABI, bad specs, fork-of-a-fork chain, dropped lineage, self-referencing lineage.

Refs #8280
Refs #8540


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…8280)

A single-file bundle carries the payload, a manifest stating the D1
identity, the F12.7 ABI descriptor and fork lineage, plus two author
signatures: one over the exact manifest bytes and the payload, and the
F12.17 world-module signature so the bundle installs into a
trust-listed world. decode() verifies offline and names the failing
check. fork() appends the parent's identity to the lineage, so
attribution cannot be dropped without breaking the signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 05:47
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 05:47
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit a06e85f into main Nov 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T05:48:53.381525Z 938fba1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants